package top.longmarch.flow.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.longmarch.flow.entity.LiteflowApp;
import top.longmarch.flow.mapper.LiteflowAppMapper;
import top.longmarch.flow.service.ILiteflowAppService;
import top.longmarch.flow.utils.PageUtil;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author YuYue
 * @since 2024-04-22
 */
@Service
public class LiteflowAppServiceImpl extends ServiceImpl<LiteflowAppMapper, LiteflowApp> implements ILiteflowAppService {
    @Override
    public IPage<LiteflowApp> search(Map<String, Object> params) {
         IPage<LiteflowApp> page = PageUtil.get(params);
         LambdaQueryWrapper<LiteflowApp> wrapper = new LambdaQueryWrapper<>();
         // 模糊查询
         // QueryHelper.addFuzzyQuery(wrapper, params, Constant.FUZZY_VALUE, functionList);
         return this.page(page, wrapper);
    }
}
